#!/bin/bash

## Install NeoVim
sudo pacman -S neovim xclip

## Download LazyVim
# required
rm -rf ~/.config/nvim
# optional but recommended
rm -rf ~/.local/share/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.cache/nvim
# clone
git clone https://github.com/LazyVim/starter ~/.config/nvim
# clear git repo
rm -rf ~/.config/nvim/.git

## Config LazyVim
mkdir -p ~/.config/nvim/lua/custom
echo "" >~/.config/nvim/lua/custom/init.lua
tee -a ~/.config/nvim/lua/custom/init.lua <<'EOF'
-- 启用系统剪贴板
vim.opt.clipboard = "unnamedplus"
EOF
